package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.SpuInfoDescEntity;
import com.atguigu.gulimall.product.vo.SpuSaveVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SpuInfoEntity;

import java.util.List;
import java.util.Map;

/**
 * spu信息
 *
 * @author Shawn
 * @email 572484122@qq.com
 * @date 2021-03-20 17:11:06
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVO spuSaveVO);

    SpuInfoEntity saveBaseSpuInfo(SpuSaveVO spuSaveVO);

    void saveSpuInfoDesc(List<String> decript, SpuInfoEntity baseSpuInfo, SpuSaveVO spuSaveVO);

    void saveProductAttrValue(SpuInfoEntity baseSpuInfo, SpuSaveVO spuSaveVO);

    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 商品上架
     * @param spuId
     */
    void spuUp(Long spuId);
}

